'use strict';

angular.module('xuexibangApp')
	.factory('Exam', function($resource) {
		return $resource('/api/exams/:id/:code/:pageindex/:pagesize', {
			id: '@_id'
		},{
			getCount:{
				method:'GET',
				params:{
					id:'count'
				}
			},getOfKlass: {
				method: 'GET',
				isArray:true,
				params: {
					id: 'klass'
				}
			},getLastOne: {
				method: 'GET',
				params: {
					id: 'klasslastone'
				}
			}
		});
	});
